﻿using System.Data.Entity.ModelConfiguration;
using Wamm.Model.Entities;

namespace Wamm.EntityFrameworkImplementation.EntityConfigurations {
    public class FamilyPhotoConfiguration : EntityConfiguration<FamilyPhoto> {
        public FamilyPhotoConfiguration()
        {
            this.Property(fp => fp.SizeType).IsRequired();
            this.Property(fp => fp.Picture).IsRequired();
            this.Property(fp => fp.AddedBy).IsRequired();
            this.Property(fp => fp.LastUpdatedBy).IsRequired();
            // the following are required due to using a not nullable data type:
            // Id
            // Height
            // Width  
            // FamilyId
            // Added
            // LastUpdated
        }
    }
}
